From f13f68c9b1f1f057391bee918b86f82cd9c815ae Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Fri, 4 Oct 2024 17:20:57 -0500 Subject: [PATCH] Use static paths instead of static URLs to ease reverse-proxying --- src/pgwui_sql/templates/sql.mak | 10 +++++----- src/pgwui_sql/templates/sql_base.mak | 2 +- src/pgwui_sql/templates/sql_edit.mak | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pgwui_sql/templates/sql.mak b/src/pgwui_sql/templates/sql.mak index f6d8ba6..ae5020e 100644 --- a/src/pgwui_sql/templates/sql.mak +++ b/src/pgwui_sql/templates/sql.mak @@ -48,11 +48,11 @@ return '${request.route_path("pgwui_sql_edit")|n}'; } function pgwuiSqlShowWhitespaceURL() { - return '${request.static_url( + return '${request.static_path( "pgwui_sql:static/show_whitespace.css")}'; } function pgwuiSqlBackgroundRulesURL() { - return '${request.static_url( + return '${request.static_path( "pgwui_sql:static/background_rules.css")}'; } // Set window name so that the sql_edit window can vary the target @@ -71,10 +71,10 @@ <%block name="stylesheet_links"> ${parent.stylesheet_links()} @@ -213,5 +213,5 @@ ${render_results()} ${self.main_form(tab_index)} diff --git a/src/pgwui_sql/templates/sql_base.mak b/src/pgwui_sql/templates/sql_base.mak index 8387046..082ad11 100644 --- a/src/pgwui_sql/templates/sql_base.mak +++ b/src/pgwui_sql/templates/sql_base.mak @@ -53,7 +53,7 @@ <%block name="stylesheet_links"> ${parent.stylesheet_links()} diff --git a/src/pgwui_sql/templates/sql_edit.mak b/src/pgwui_sql/templates/sql_edit.mak index c1879e5..a95fcec 100644 --- a/src/pgwui_sql/templates/sql_edit.mak +++ b/src/pgwui_sql/templates/sql_edit.mak @@ -311,5 +311,5 @@ % endif -- 2.34.1